
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 使用状态 1:待激活 2：正常 3：过期
 * </p>
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum UseStatusEnum {

    TO_BE_ACTIVATED("1", "待激活"),
    NORMAL("2", "正常"),
    BE_OVERDUE("3", "过期");
    private final String value;
    private final String description;

    public static UseStatusEnum find(String val) {
        for (UseStatusEnum dataScopeEnum : UseStatusEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
